package com.jy.api.dao;

import com.jy.api.domain.LeaseProductType;
import com.jy.api.domain.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author xiaohua
 * @data 2024/11/14 0014 18:47
 */
public interface LeaseProductTypeDao extends JpaRepository<LeaseProductType, Integer>, JpaSpecificationExecutor<LeaseProductType> {
    List<LeaseProductType> findByStoreId(String storeId);

    LeaseProductType findByStoreIdAndName(String storeId, String name);
}
